import {useRouter} from "vue-router";
import {computed} from "vue";

export class UtilsSystem {
    static deepClone(obj) {
        if (obj == null || obj === "") return obj
        return JSON.parse(JSON.stringify(obj))
    }

    static getRouters() {
        const router = useRouter();
        const routers = computed(() => {
            return router.options.routes;
        });
        return {routers};
    }
}